import { createStore } from 'vuex'

export default  createStore({
  state () {
    return {
      showReview: false,
      showDelete:false,
      deleteId:"",
      isLoading:false
    }
  },
  mutations: {
    changeTrue (state) {
      state.showReview = true
    },
    changeFalse (state) {
      state.showReview = false
    },
    changeDeleteTrue (state,id) {
      state.showDelete = true;
      state.deleteId = id;

    },
    changeDeleteFalse (state) {
      state.showDelete = false
    },
    changeLoadingTrue (state) {
      state.isLoading = true
    },
    changeLoadingFalse (state) {
      state.isLoading = false
    },

  }
})
